import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p003 from './p003';

export default async function a004(fd: IFeidaoAiBrowserComponent) {
	// 项目下拉框 的联动
	const dd=fd.data.node.querySelector<HTMLSelectElement>('[data-id="deptname"]');
	const department_no=dd.selectedOptions[0].value;
	const res = await nodejs<{dt: Array<{}>}>('staff-management/zj-000002/s001',{filter:{department_no}});
	render(fd,res.dt,p003,'p003','inner');
}
